package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 查询响应码枚举
 *
 * @author 陈俊杰
 */
@Getter
@AllArgsConstructor
public enum SelectResCode implements BaseResCode {
    //----------------------------------------------------------------------------------成功
    GET_OSS_CREDENTIALS_SUCCESS(200, "获OSS凭证成功"),
    GET_GITEE_USER_INFO_SUCCESS(200, "获取Gitee用户信息成功"),
    SELECT_SUCCESS(200, "查询成功"),
    SELECT_MEMBER_INFO_SUCCESS(200, "查询会员信息成功"),
    SELECT_ORDER_ITEM_SUCCESS(200, "查询订单项信息成功"),
    SELECT_MQ_MESSAGE_SUCCESS(200, "查询MQ消息成功"),
    SELECT_SKU_STOCK_SUCCESS(200, "查询商品库存成功"),
    SELECT_FIRST_CATEGORY_SUCCESS(200, "查询一级分类成功"),
    SELECT_SECOND_CATEGORY_SUCCESS(200, "查询二级分类成功"),
    SELECT_THIRD_CATEGORY_SUCCESS(200, "查询三级分类成功"),
    SELECT_CATEGORY_TREE_SUCCESS(200, "查询分类树成功"),
    SEARCH_PRODUCT_SUCCESS(200, "搜索商品成功"),
    SELECT_PRODUCT_DETAILS_INFO_SUCCESS(200, "查询商品详情成功"),
    SELECT_ATTRS_LIST(200, "查询属性组合成功"),
    SELECT_MEMBER_RECEIVE_ADDRESS_LIST_SUCCESS(200, "查询会员收货地址列表成功"),
    SELECT_FARE_SUCCESS(200, "查询运费成功"),
    SELECT_SPU_INFO_SUCCESS(200, "查询商品SPU信息成功"),
    SELECT_CART_INFO_SUCCESS(200, "获取购物车信息成功"),
    SELECT_ORDER_DETAIL_SUCCESS(200, "获取订单详情成功"),
    //----------------------------------------------------------------------------------失败
    SELECT_FAIL(400, "查询失败"),
    SELECT_SKU_FILE_NOT_EXIST(404, "商品不存在"),
    SELECT_MEMBER_INFO_FAIL_DATA_IS_NOT_EXIST(404, "会员信息不存在或被禁用,查询失败"),
    ORDER_NOT_EXIST(404, "订单不存在"),
    ;
    private final Integer code;
    private final String msg;
}
